﻿/* 2012/4/15 */
using System;

namespace Cosmos.Windows.Forms
{
    /// <summary>
    /// Provides data for the FolderSelected event.
    /// </summary>
    public class FolderPathEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the FolderPathEventArgs class.
        /// </summary>
        /// <param name="path">The path of the folder.</param>
        public FolderPathEventArgs(string path)
        {
            Path = path;
        }

        /// <summary>
        /// Gets the path of the folder.
        /// </summary>
        public string Path
        {
            get;
            protected set;
        }
    }

    /// <summary>
    /// Represents the method that will handle the FolderSelected event.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">A FolderPathEventArgs that contains the event data.</param>
    public delegate void FolderPathEventHandler(object sender, FolderPathEventArgs e);
}
